package server.synchronization;

import java.util.AbstractMap;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class LockList extends AbstractMap<String, LockListElement>
{
	private final HashMap<String, LockListElement> locks;
	
	public LockList()
	{
		locks = new HashMap<String, LockListElement>();
	}
	
	@Override
	public Set<java.util.Map.Entry<String, LockListElement>> entrySet()
	{
		return locks.entrySet();
	}
	@Override
	public void clear()
	{
		locks.clear();
	}
	@Override
	public boolean containsKey(Object key)
	{
		return locks.containsKey(key);
	}
	@Override
	public boolean containsValue(Object value)
	{
		return locks.containsValue(value);
	}
	@Override
	public LockListElement get(Object key)
	{
		return locks.get(key);
	}
	@Override
	public boolean isEmpty()
	{
		return locks.isEmpty();
	}
	@Override
	public Set<String> keySet()
	{
		return locks.keySet();
	}
	@Override
	public LockListElement put(String key, LockListElement value)
	{
		return locks.put(key, value);
	}
	@Override
	public void putAll(Map<? extends String, ? extends LockListElement> m)
	{
		locks.putAll(m);
	}
	@Override
	public LockListElement remove(Object key)
	{
		return locks.remove(key);
	}
	@Override
	public int size()
	{
		return locks.size();
	}
	@Override
	public Collection<LockListElement> values()
	{
		return locks.values();
	}
}
